<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>HelloWorld</title>
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>v-text & v-html< 实例</h1>
    <hr>
    <div id="app">
       <span>{{message}}</span> =
       <span v-text="message"></span>
       <br>
       <span v-html="dodo"></span>
    
    </div>
    <script type="text/javascript">
        var app = new Vue({
            el:'#app',
            data:{
                message:'Hello World111!',
                //尽量少用这种标签,会引起黑客的xss攻击
                dodo: '<h2>hello world!<h2>'
              
            }
       
        });    
      
    </script>
</body>
</html>